<?=View::factory('admin/common/header')?>
<div id="content">
  <div class="box" style="width: 400px; min-height: 300px; margin-top: 40px; margin-left: auto; margin-right: auto;">
    <div class="heading">
      <h1><img src="<?=URL::base()?>images/admin/lockscreen.png" alt="" /> 请输入您的登录信息：</h1>
    </div>
    <div class="content" style="min-height: 150px; overflow: hidden;">
      <? foreach ($errors as $error) { ?><div class="warning"><?=$error?></div><? }?>
      <form action="<?=URL::site('admin/account/login')?>" method="post" enctype="multipart/form-data" id="form">
        <table style="width: 100%;">
          <tr>
            <td rowspan="2" align="center" valign="middle"><img src="<?=URL::base()?>images/admin/login.png" alt="请输入您的登录信息" hspace="10" /></td>
          </tr>
          <tr>
            <td><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="40" align="left">登录名：</td>
                <td><input type="text" name="account" value="<?=$manager->email?>" size="25" /></td>
              </tr>
              <tr>
                <td height="40" align="left">密　码：</td>
                <td><input type="password" name="password" size="25" /></td>
              </tr>
              <tr>
                <td height="40" align="left">验证码：</td>
                <td><input type="text" name="captcha" size="8" autocomplete="off" /> <img id="img" class="captcha" align="absmiddle" width="80" height="28" alt="" title="看不清楚？点击刷新验证码" src="<?=URL::site('captcha')?>" onclick="javascript:this.src='<?=URL::site('captcha')?>?' + Math.random();" /></td>
              </tr>
              <tr>
                <td height="40" align="left">&nbsp;</td>
                <td><input type="submit" class="btn70" value=" 登 录 " />&nbsp;</td>
              </tr>
            </table></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<?=View::factory('admin/common/footer')?>
<script type="text/javascript">
$().ready(function(){
    $('input[name=account]').focus();
});
</script>